package com.ruoyi.keep.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户购买充值卡对象 user_buy_recharge_card
 * 
 * @author wxy
 * @date 2024-08-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserBuyRechargeCard {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId
    @Excel(name = "id")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 剩余金额 */
    @Excel(name = "剩余金额")
    private Double residuePrice;

    /** 逻辑删除 */
    @TableLogic
    private Integer del;

    @TableField(exist = false)
    /** 关联查询CommonUsers表 */
    private CommonUsers commonUsers;
    @TableField(exist = false)
    private String nickname;
//    @TableField(exist = false)
//    private Long gender;
    @TableField(exist = false)
    private String mobile;

    @TableField(exist = false)
    private Integer cardType;  //1为次数卡，2为充值卡
    @TableField(exist = false)
    private Integer cardNum;   //次数卡次数  添加
    @TableField(exist = false)
    private Double morePrice;   //相当于这个100    充50抵100

}
